#pragma once

#include <wx/wx.h>
#include <wx/regex.h>

class Formatter {
public:
	wxString& format(const wxString& dict, const wxString& word, wxString& explain);

    static Formatter& get() {
        if(_hlight_mgr==NULL) {
        	_hlight_mgr = new Formatter();
        }

        return *_hlight_mgr;
    }
	
protected:
	wxRegEx list_reg;
	wxRegEx pronoun_reg;
	wxRegEx synonym_reg;
	wxRegEx verb_reg;
	
    static Formatter* _hlight_mgr;

private:
	Formatter();
};
